<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/common/tag.jsp"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<rapid:override name="css">
	<!-- Required Stylesheets -->
</rapid:override>

<rapid:override name="container">
	<div class="mws-form">
		<form id="mws-validate" class="mws-form"
			action="${ctx}/personRecord/queryPersonRecord" method="post">
			<div class="mws-form-inline">
				<div class="mws-form-row">
					<label>持卡人姓名：</label> <input type="text" id="name" name="name"
						class="mws-textinput" value=""> 持卡人部门： <select name="dept">
						<option value="">请选择</option>
						<c:forEach items="${requestScope.deptList}" var="d">
							<option value="${d.id }">${d.name}</option>
						</c:forEach>
					</select>
				</div>
				<div class="mws-form-row">
					<label>刷卡起始时间：</label> <input type="date" id="beginDate"
						name="beginDate" class="mws-textinput" value=""> 刷卡结束时间： <input
						type="date" id="endDate" name="endDate" class="mws-textinput"
						value=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="submit" value="查 询" class="mws-button blue" /> <%-- <a
						href="${ctx}/personRecord/getPersonRecordExcel"
						class="mws-button blue">下 载</a> --%>
				</div>
			</div>
		</form>
	</div>
	<div class="mws-panel grid_8">
		<div class="mws-panel-header">
			<span class="mws-i-24 i-table-1">人员刷卡记录清单</span>
		</div>
		<div class="mws-panel-body">
			<table class="mws-datatable-fn mws-table">
				<thead>
					<tr>
						<th>IC卡号</th>
						<th>ID卡号</th>
						<th>持卡人编号</th>
						<th>持卡人姓名</th>
						<th>区域</th>
						<th>性别</th>
						<th>身份证号</th>
						<th>门号</th>
						<th>时间</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${requestScope.personRecordList}" var="p">
						<tr class="gradeX">
							<td>${p.ICNO}</td>
							<td>${p.IDNO}</td>
							<td class="center">${p.NO }</td>
							<td>${p.name }</td>
							<td class="center">${p.areaID }</td>
							<td class="center">${p.sex }</td>
							<td>${p.identityNo }</td>
							<td>${p.doorName }</td>
							<td class="center">${p.brushCardTime }</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</rapid:override>
<rapid:override name="script">
	<script type="text/javascript"
		src="${ctx}/plugins/jquery.dataTables.js"></script>
</rapid:override>

<%@ include file="/WEB-INF/jsp/common/common.jsp"%>
